/**
 * Copyright (C) 2013-2014 the original author or authors.
 */
package com.foreveross.bsl.mongodb.repository.handler;

import org.springframework.dao.DataAccessException;

import com.mongodb.DB;

/**
 * @description
 *
 * @author rening
 * @version v1.0
 *
 * @2013-6-5
 *
 */
public interface RouterScheme {

	/**
	 * @param registerNo
	 * @param clazz
	 * @return
	 * @throws DataAccessException
	 */
	public DB getDb(String registerNo, Class clazz) throws DataAccessException;

	/**
	 * @param registerNo
	 * @param clazz
	 * @param dbName
	 * @return
	 */
	public DB getDb(String registerNo, Class clazz, String dbName) throws DataAccessException;
}
